package com.code.day17;

import java.util.function.Supplier;

public class Demo10Stream {
    public static void main(String[] args) {
//        method(new Supplier<String>() {
//            @Override
//            public String get() {
//                return "";
//            }
//        });
        method(" abc " :: trim);
    }
    public static  void method(Supplier<String> supplier){
         String string= supplier.get();
        System.out.println("String:"+string);
    }
}
